package org.covalence;

import java.beans.PropertyChangeSupport;

public class DataTypes {

private PropertyChangeSupport pcs = new PropertyChangeSupport(this);
	
	private String name;
	
	private byte race;
	
	private char middleInitial;
	
	private short fingers;
	
	private int age;

	private long id;
	
	private double height;
	
	private float weight;
	
	private boolean boy;
	
	public boolean isBoy() {
		return boy;
	}

	public void setBoy(boolean boy) {
		this.boy = boy;
	}

	public char getMiddleInitial() {
		return middleInitial;
	}

	public void setMiddleInitial(char middleInitial) {
		char c1 = this.middleInitial;
		char c2 = middleInitial;
		this.middleInitial = middleInitial;
		pcs.firePropertyChange("middleInitial", c1, c2);
	}

	public byte getRace() {
		return race;
	}

	public void setRace(byte race) {
		byte b1 = this.race;
		byte b2 = race;
		this.race = race;
		pcs.firePropertyChange("race", b1, b2);
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		double d1 = this.height;
		double d2 = height;
		this.height = height;
		pcs.firePropertyChange("height", d1, d2);
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		float f1 = this.weight;
		float f2 = weight;
		this.weight = weight;
		pcs.firePropertyChange("weight", f1, f2);
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		int i1 = this.age;
		int i2 = age;
		this.age = age;
		pcs.firePropertyChange("age", i1, i2);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		String s1 = this.name;
		String s2 = name;
		this.name = name;
		pcs.firePropertyChange("name", s1, s2);
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		long l1 = this.id;
		long l2 = id;
		this.id = id;
		pcs.firePropertyChange("id", l1, l2);
	}

	public short getFingers() {
		return fingers;
	}

	public void setFingers(short fingers) {
		short s1 = this.fingers;
		short s2 = fingers;
		this.fingers = fingers;
		pcs.firePropertyChange("fingers", s1, s2);
	}
}
